<?php
	
	class EventItemComment implements iModel {
		
		public $eventItemCommentId;
		public $eventItemId;
		public $comment;
		public $date;
		public $commentUser;
		
		public function __construct (){
			$this->setCommentUser(new EventItemUser());
		}
		
		public function getEventItemCommentId() {
			 return $this->eventItemCommentId;
		} 
		
		public function getEventItemId() {
			 return $this->eventItemId; 
		} 
		
		public function getComment() {
			return $this->comment; 
		} 
		
		public function getDate() {
			 return $this->date; 
		}
		 
		public function getCommentUser() {
			 return $this->commentUser; 
		} 
		
		public function setEventItemCommentId($eventItemCommentId) {
			 $this->eventItemCommentId = $eventItemCommentId; 
		} 
		
		public function setEventItemId($eventItemId) {
			 $this->eventItemId = $eventItemId; 
		} 
		
		public function setComment($comment) {
			 $this->comment = $comment; 
		} 
		
		public function setDate($date) {
			 $this->date = $date;
		}
		 
		public function setCommentUser($commentUser) {
			 $this->commentUser = $commentUser;
		} 
		
		public function JSONToObject($eventItemCommentJSON) {
			$this->setEventItemCommentId($eventItemCommentJSON->eventItemCommentId);
			$this->setEventItemId($eventItemCommentJSON->eventItemId);
			$this->setComment($eventItemCommentJSON->comment);
			$this->setDate($eventItemCommentJSON->date);
			$eventItemUser = new EventItemUser();
			$eventItemUser->JSONToObject($eventItemCommentJSON->commentUser);
			$this->setCommentUser($eventItemUser);
		}
		
		
	}

?>